package edu.tyut.game.model;

public record Result<T>(String status, String msg, T data) {
    public static <T> Result<T> success(String msg, T data){
        return new Result<>("ok", msg, data);
    }
    public static <T> Result<T> error(String msg, T data){
        return new Result<>("error", msg, data);
    }
}
